"""
考试管理模块 - URL配置
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from . import views

# 创建路由器并注册视图集
router = DefaultRouter()
router.register(r'examinations', views.ExaminationViewSet, basename='examination')
router.register(r'sessions', views.ExaminationSessionViewSet, basename='examination-session')
router.register(r'answers', views.ExaminationAnswerViewSet, basename='examination-answer')
router.register(r'templates', views.ExaminationTemplateViewSet, basename='examination-template')
router.register(r'question-banks', views.QuestionBankSelectViewSet, basename='question-bank-select')

app_name = 'examination'

urlpatterns = [
    # 包含路由器生成的URL
    path('', include(router.urls)),
]